/**
 * Created by admin on 2016/11/9.
 */
var shop = function(){
    var typeShow = function(){
        $('.pro-type-title').on("click",function(){
            $(this).nextAll('.pro-list-unsort-content').slideToggle();
            $(this).nextAll('.pro-block-unsort-content').slideToggle();
            $(this).nextAll('.pro-list-sort-content').slideToggle();
            $(this).nextAll('.pro-block-sort-content').slideToggle();
        });
    };

    var cartDrag = function(){
        new Drag('cart');
    };
    return{
        init:function(){
            typeShow();
            cartDrag();
        }
    }
}();